<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">CAR MAKE OR COMPANY MANAGEMENT</a>
        </h2>
        <div class="block" >
            <form name="admin-form" action="<?= base_url(); ?>admin/management/make_insert" method="post">
                <fieldset>
                    <legend>Make / Company : NEW </legend>
                    <?php
                    if ($this->session->flashdata('message')) {
                        $msg = $this->session->flashdata('message');
                        echo '<font color="red">' . $msg . '</font>';
                    }
                    ?> 
                    <div class="field">
                        <label> Company Name</label>
                        <input type="text" size="50" name="company" onfocus="if(this.value=='Enter Company')this.value='';" 
                               onblur="if(this.value=='')this.value='Enter Company';" value="Enter Company" />
                    </div>
                    <div class="field">
                        <label> Company Link</label>
                        <input type="text" size="50" name="link" onfocus="if(this.value=='#')this.value='';" 
                               onblur="if(this.value=='')this.value='#';" value="#" />

                    </div>
                    <div class="field">
                        <input type="submit" value="Add Company" name="insert" />
                    </div>
                </fieldset>
            </form>
        </div>
    </div> <!-- END OF BOX -->

    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">Company OR Make LIST</a>
        </h2>

        <div class="block" >
            <fieldset>
                <legend>List :</legend>
                <?php foreach ($make as $make): ?>
                    <form name="update_make" action="<?= base_url(); ?>admin/management/make_update" method="post">
                        <div class="field">
                            <input type="hidden" size="0" name="make_id" value="<?= $make->id; ?>" />
                            <input type="text" size="40" name="make_detail" value="<?= $make->make; ?>" />
                            <input type="text" size="40" name="link" value="<?= $make->link; ?>" />
                            <input type="submit" value="Update" name="update_make" />
                            <div id="link-button" style="float: right">
                                <a href="<?= base_url(); ?>admin/management/make_logo_uplaod/<?= $make->id; ?>" class="link-button"> Company Logo </a>
                                <a href="<?= base_url(); ?>admin/management/make_delete/<?= $make->id; ?>" class="link-button" onclick="return confirm('Are you sure you ...')"> Delete </a>
                                <a href="<?= base_url(); ?>admin/management/model/<?= $make->id; ?>" class="link-button"> View Model </a>
                            </div>
                        </div>
                    </form>
                <?php endforeach; ?>

            </fieldset>                     
        </div>                       
        <div class="pagination" align="left"> <?php echo $this->pagination->create_links(); ?>  </div>
    </div> <!-- END OF BOX -->
</div>